﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace MoMoTransferVN_WP.page
{
    public partial class HomePage : PhoneApplicationPage
    {
        public HomePage()
        {
            InitializeComponent();
            
        }

        private void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            PopuTemplate pu = new PopuTemplate();
            pu.btnClose.Click += new RoutedEventHandler(btncskh_click);
            pu.Title = "New Dialog";
            pu.txtContent1.Text = "Thong bao nay thay cho giay moi";
            pu.btnClose.Content = "Goi CSKH 00000";
            pu.Show();
            /*
            pu.btnClose.Tap += (s, d) =>
            {
                MessageBox.Show("Thong bao"); 
            };
             * */
            
        }
        private void btncskh_click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Thong bao"); 
        }
        private void btnGioithieu_Click(object sender, RoutedEventArgs e)
        {
            PopuTemplate PU = new PopuTemplate();
            //PU.Title = "Thong bao";
            PU.Show();
        }
    }
}